<template>
  <div id="toolbar">
    <div>{{dataList.number}}</div>
    <button v-on:click="changeNumber(dataList)">改变number的值</button>
    <button v-on:click="alertSomeThing">alertSomeThing</button>
  </div>
</template>

<script>
import { alertSomeThing } from '../../vuex/actions/indexActions'
import common from 'common'

export default {
  props:['dataList'],
  vuex: {
    actions: {
      alertSomeThing,
    }
  },
  ready:function(){
  },
  methods:{
    changeNumber:function(dataList){
      dataList.number="我改变了额"
    }
  }
}
</script>


